<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.fui-tab-scroll .item a {color:#333;font-weight:400}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#000;font-weight:400}
.fui-tab-scroll .item.on:before {height: 0;}
.fui-icon-group .fui-icon-col {
    margin: 0.1rem 0;
}
.carousel {margin-top:0}
.fui-header:after {
	border-bottom: 1px solid #333;
}
.fui-notice:after, .fui-notice:before  {
	border-bottom: 0 solid #D9D9D9;
	border-top: 0 solid #D9D9D9;
}
.bottombg {position: absolute;margin-top:-0.5rem;width:100%;height:0.5rem;border-top-right-radius:0.5rem;border-top-left-radius:0.5rem;}
.topbg {height:4rem;}
.topbg.nosearch{height:2rem;}
.search-input i {
    color: {{main.syscolor||'#b4b4b4'}};
}
.search-input input {
	border: 0 solid #b4b4b4;
}
.radius .jy-group {border-radius:0.5rem;margin:0.2rem 0.5rem}
.fui-content {
    background: #fff;
}
.right-living{
	display:block;
	position:relative;
	height:auto;
	line-height:2;
	width:auto;border: 0 solid #ededed;padding:0 0.4rem;
	margin-bottom:0.5rem;
}
.right-living.active{
	background:#eb5c20;
	color:#fff
}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div ng-if="pagedata.nodatapic_close" class="fui-page fui-page-current page-goods-list" style="background: none">
<div class='fui-content' style="top:0;">
	<div ng-if="pagedata.pageset.hdps.length>0" ng-include="sys_html('shop/_hdps1')" style="padding:0;"></div>
	<div ng-if="pagedata.nowhdp.key==5" ng-include="sys_html('shop/_page5')" style="padding:0;"></div>
	<div ng-if="pagedata.nowhdp.key==1" ng-include="sys_html('shop/_page1')" style="padding:0;"></div>
	<div ng-if="pagedata.nowhdp.key==2" ng-include="sys_html('shop/_page2')" style="padding:0;"></div>
	<div ng-if="pagedata.nowhdp.key==4" ng-include="sys_html('shop/_page4')" style="padding:0;"></div>
	<div ng-if="pagedata.nowhdp.key==3" ng-include="sys_html('shop/_page3')" style="padding:0;"></div>
</div>
</div>
<div style="position: fixed;bottom:4.5rem;right:0;z-index:10008">
	<div class="right-living {{pagedata.nowhdp.key==5?'active':''}}" ng-click="pagedata.slideTo(0)">
		行业篇
	</div>
	<div class="right-living {{pagedata.nowhdp.key==1?'active':''}}" ng-click="pagedata.slideTo(pagedata.pageset.hdps5.length)" style="">
		公司篇
	</div>
	<div class="right-living {{pagedata.nowhdp.key==2?'active':''}}" ng-click="pagedata.slideTo(pagedata.pageset.hdps5.length+pagedata.pageset.hdps1.length)" style="">
		产品篇
	</div>
	<div class="right-living {{pagedata.nowhdp.key==4?'active':''}}" ng-click="pagedata.slideTo(pagedata.pageset.hdps5.length+pagedata.pageset.hdps1.length+pagedata.pageset.hdps2.length)" style="">
		服务篇
	</div>
	<div class="right-living {{pagedata.nowhdp.key==3?'active':''}}" ng-click="pagedata.slideTo(pagedata.pageset.hdps5.length+pagedata.pageset.hdps1.length+pagedata.pageset.hdps2.length+pagedata.pageset.hdps4.length)" style="">
		素材篇
	</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_sales','','','jy_weishop')"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.nodatapic_close" ng-include="sys_html('common/_coupon',true)"></div>
<div ng-if="pagedata.nodatapic_close" ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<div ng-include="sys_html('common/_welcomehdp',true)"></div>
<!--弹目-->
<div ng-if="pagedata.showtanmus && !pagedata.pluginset.no_tanmu" class="video-sms-pane {{pagedata.transition?'transition':''}}">
		<div class="video-sms-text">
			<image class="video-sms-logo" ng-src="{{pagedata.tanmus[pagedata.nowmsgid].avatar}}"/>
			<span class="overflow-h"> 最新订单来自 {{pagedata.tanmus[pagedata.nowmsgid].nickname}}</span>
		</div>
</div>
<script>
scope.pagedata.issocketmsg=false;
scope.pagedata.tanmuspage=0;
scope.pagedata.isa2=true;
scope.pagedata.isno_coupontop=1;
scope.pagedata.gettanmus=function() {
	if(!scope.pagedata.issocketmsg){
			scope.pagedata.nowmsgid=0;
			scope.get('jy_weishop/get_data/gettanmus/page='+scope.pagedata.tanmuspage,function(res){
						//console.log(res);
						scope.pagedata.tanmus=res.list
						if(scope.pagedata.tanmus.length>0){
							scope.pagedata.tanmuspage++;
							scope.pagedata.up_oldtanmu();
						}
			});
	}
}
//刚进入时；如果没有新订单消息，就弹储备订单消息
if(scope.pagedata.setting.no_tanmu!=1){
		setTimeout(function(){
			scope.pagedata.gettanmus();
		},2000);
}
scope.pagedata.up_oldtanmu=function() {
		if(scope.page.action=='index'){
			var i=scope.pagedata.nowmsgid;
			if(i<scope.pagedata.tanmus.length){
				set_tanmu(scope.pagedata.tanmus[i].nickname,scope.pagedata.tanmus[i].avatar,scope.pagedata.tanmus[i].time);
			}else{
				scope.pagedata.gettanmus();
			}
		}else{
			return false;
		}
}
function set_tanmu(nickname,avatar,time) {
		scope.pagedata.nowmsgid++
		scope.pagedata.showtanmus=true
		scope.$evalAsync(scope.pagedata.showtanmus);
		setTimeout(function(){
			scope.pagedata.transition=true
			scope.$evalAsync(scope.pagedata.transition);	
		},300);
		setTimeout(function(){
			scope.pagedata.showtanmus=false
			scope.pagedata.transition=false
			scope.$evalAsync(scope.pagedata.showtanmus);	
		},2000);
		setTimeout(function(){
			//等待5秒，如果没有新的订单消息，就弹储备订单消息
			scope.pagedata.issocketmsg=scope.pagedata.issocketmsg?scope.pagedata.issocketmsg:false;
			if(!scope.pagedata.issocketmsg && scope.page.action=='index'){
				scope.pagedata.up_oldtanmu();
			}
		},4000);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href = result;
				}
			});
}
scope.pagedata.gotoid=function(id,url){
	if(url){
		scope.access_json(url);
	}else{
		setTimeout(function(){
			var element = document.getElementById(id);
			element.scrollIntoView();
			element.scrollIntoView(false);
			element.scrollIntoView({block: "start"});
			element.scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
		},200);
	}
}
</script>
<script>
scope.tool.get_list('jy_tiffany/news.list/getlist/pagekey='+scope.pagedata.nowhdp.key,true);
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.nowhdp.key!=1){
		scope.tool.get_list('jy_tiffany/news.list/getlist/pagekey='+scope.pagedata.nowhdp.key);
	}
}
</script>